package com.example.author.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.author.entity.Author;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.dtos.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 凡哥哥
 * @since 2023-11-20
 */
public interface IAuthorService extends IService<Author> {
    /**
     * 作者登录
     * @param password,phone
     * @return
     */
    ResponseResult<Author> login(String phone,String password);

    /**
     * 作者注册
     * @param author
     * @return
     */
    ResponseResult<String> register(Author author);

    /**
     * 作者手机号
     * @param phone
     * @return
     */
    ResponseResult<String> sendCode(String phone);



}
